//
// Created by wkm on 2024-04-17.
//

#include "xEtime_test.h"

void xEtime_test() {
    sc_clock clk("my_clk", 2, SC_NS);
    sc_signal<bool> start, reset;
    sc_signal<sc_uint<DATA_SIZE>> input_data, result;
    sc_signal<exe_state> done;

    xEtime my_xEtime("my_xEtime");
    my_xEtime.start(start);
    my_xEtime.reset(reset);
    my_xEtime.clk(clk);
    my_xEtime.input_data(input_data);
    my_xEtime.result(result);
    my_xEtime.done(done);

    xEtime_driver my_xEtime_driver("my_xEtime_driver");
    my_xEtime_driver.d_start(start);
    my_xEtime_driver.d_reset(reset);
    my_xEtime_driver.d_clk(clk);
    my_xEtime_driver.d_input_data(input_data);

    xEtime_monitor my_xEtime_monitor("my_xEtime_monitor");
    my_xEtime_monitor.m_result(result);
    my_xEtime_monitor.m_done(done);

    sc_start();
}